package com.slingshot.identitylibrary.idinfo.agent

import com.slingshot.identitylibrary.idinfo.IdInfo
import com.slingshot.identitylibrary.idinfo.callback.IDInfoCallback

internal class IdInfoAgent {

    private val idInfo = IdInfo()

    fun extractIdCardFace(appId: String, appSecret: String, imageBase64: String, idCardFrontCallback: IDInfoCallback) {
        idInfo.extractIdCardFace(appId, appSecret, imageBase64, idCardFrontCallback)
    }

    fun extractIdCardNationalEmblem(appId: String, appSecret: String, imageBase64: String, idCardBackCallback: IDInfoCallback) {
        idInfo.extractIdCardNationalEmblem(appId, appSecret, imageBase64, idCardBackCallback)
    }

    fun extractFaceDetect(appId: String, appSecret: String, imageBase64: String, faceDetectCallback: IDInfoCallback) {
        idInfo.extractFaceDetect(appId, appSecret, imageBase64, faceDetectCallback)
    }
    fun extractFaceDetect(appId: String, appSecret: String, imageBase64: String,imageBase64_ID: String, faceDetectCallback: IDInfoCallback) {
        idInfo.extractFaceDetect(appId, appSecret, imageBase64,imageBase64_ID, faceDetectCallback)
    }

    fun release() {
        idInfo.release()
    }
}